[CakePHP] How to add some action after login (and before redirection)?

Posted by user198003 on Stack Overflow See other posts from Stack Overflow or by user198003
Published on 2010-06-15T21:28:02Z Indexed on 2010/06/15 22:42 UTC
Read the original article Hit count: 120

Filed under:
|
|

hello,

trying to develop some sort of login tracker for my cakephp application.

i know that i need code like:

$this->data['LoginSession']['username'] = $_SERVER['REMOTE_ADDR'];
$this->data['LoginSession']['ipAddress'] = $_SERVER['REMOTE_ADDR'];
$this->LoginSession->save($this->data);

... in (i guess) users_controller, but don't know exactly where.

also i would like to track successful, but also unsuccessful logins.

can you help me with this please? thank you in advance!

© Stack Overflow or respective owner

Related posts about cakephp

Related posts about login